package cn.com.fone.modules.api.common.split;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class InitBean {
    private static final Logger LOGGER = LoggerFactory.getLogger(InitBean.class);

    @Bean
    public SplitInterceptor initInterceptor() {
        LOGGER.info("Initializing mybatis interceptor ...");
        return new SplitInterceptor();
    }


}
